import request from "@/utils/request";

// 查询考核信息列表
export function listBizAssessInfo(query) {
  return request({
    url: "/biz/bizAssessInfo/list",
    method: "get",
    params: query,
  });
}

// 查询考核信息详细
export function getBizAssessInfo(id) {
  return request({
    url: "/biz/bizAssessInfo/" + id,
    method: "get",
  });
}

// 新增考核信息
export function addBizAssessInfo(data) {
  return request({
    url: "/biz/bizAssessInfo",
    method: "post",
    data: data,
  });
}

// 修改考核信息
export function updateBizAssessInfo(data) {
  return request({
    url: "/biz/bizAssessInfo",
    method: "put",
    data: data,
  });
}

// 删除考核信息
export function delBizAssessInfo(id) {
  return request({
    url: "/biz/bizAssessInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizAssessInfo/findMaxSort",
    method: "get",
  });
}
// 导出考核信息
export function exportBizAssessInfo(query) {
  return request({
    url: "/biz/bizAssessInfo/export",
    method: "get",
    params: query,
  });
}
// 发布
export function fabuBizAssessInfo(data) {
  return request({
    url: "/biz/bizAssessInfo/fabu",
    method: "post",
    data: data,
  });
}
// 获取ID

export function getId() {
  return request({
    url: "/biz/bizAssessInfo/getId",
    method: "get",
  });
}
